package com.design_pattern._01_create._01_singleton;

/**
 * 懒汉模式-静态内部类
 */
public class V3 {

    private V3() {
        super();
    }

    private static class InnerClass{
        private static V3 instance = new V3();
    }

    public static V3 getInstance(){
        return InnerClass.instance;
    }
}
